package com.smart.tv.boundary;

import com.smart.tv.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class TVMenuAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_menu);
        ImageView ivChannel = (ImageView) findViewById(R.id.ivChannel);
        ImageView ivKoran 	= (ImageView) findViewById(R.id.ivKoran);
        ImageView ivLayanan = (ImageView) findViewById(R.id.ivLayanan);
        ImageView ivMovie 	= (ImageView) findViewById(R.id.ivMovie);
        ImageView ivFood 	= (ImageView) findViewById(R.id.ivFood);
        ImageView ivDrink 	= (ImageView) findViewById(R.id.ivDrink);
        
        ivChannel.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.CHANNEL);
				startActivity(intent);
			}
		});

        ivKoran.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.KORAN);
				startActivity(intent);				
			}
		});
		
        ivLayanan.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.LAYANAN);
				startActivity(intent);
			}
		});
        
        ivMovie.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.MOVIE);
				startActivity(intent);
			}
		});
        
        ivFood.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.FOOD);
				startActivity(intent);
			}
		});
        
        ivDrink.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(TVMenuAndroid.this,GalleryMenu.class);
				intent.putExtra(GalleryMenu.STATUS_MENU, GalleryMenu.DRINK);
				startActivity(intent);
			}
		});
    }
}